package com.rabbitmq.ChattingRoom.service;

import com.rabbitmq.ChattingRoom.util.Entity.UserRoomMapping;

public interface UserRoomMappingService {
    /**
     * 添加用户到聊天室
     * @param record
     * @return
     */
    Integer addUserRoomMapping(UserRoomMapping record);

    /**
     * 删除用户加入聊天室的记录
     * @param record
     * @return
     */
    Integer delUserRoomMapping(UserRoomMapping record);

    /**
     * 根据聊天室id删除信息
     * @param roomId
     * @return
     */
    Integer delInfoByRoom(Long roomId);

    /**
     * 查看 userid 的信息是否存在
     */
    boolean isExist(Long userId,Long roomId);

}
